package uk.co.agileworks.bidpirate.test;

import static uk.co.agileworks.bidpirate.test.SpringTestBase.toDate;
import uk.co.agileworks.bidpirate.model.Bid;
import uk.co.agileworks.bidpirate.model.CurrencyAndPrice;
import uk.co.agileworks.bidpirate.model.Item;
import uk.co.agileworks.bidpirate.model.Region;
import uk.co.agileworks.bidpirate.model.User;

public class DataSet {

	private final Bid bid1, bid2;

	private final Item item1, item2;

	private final User user1, user2;

	public DataSet() {

		item1 = new Item(1L);
		item1.setDescription("The La's CD");
		item1.setImageUrl("images/thelas.jpg");
		item1.setCurrencyAndPrice(new CurrencyAndPrice("GBP", 4.99));
		item1.setEndTime(toDate("25/02/2012 12:30:52 GMT"));

		item2 = new Item(2L);
		item2.setDescription("Xmas Cake");
		item2.setImageUrl("images/cake.jpg");
		item2.setCurrencyAndPrice(new CurrencyAndPrice("US $", 1.99));
		item2.setEndTime(toDate("25/12/2012 12:30:52 GMT"));

		user1 = new User();
		user1.setId(1L);
		user1.setUsername("capn_mike");
		user1.setPassword("pieces0f8");
		user1.setEmail("capn_mike@sea");
		user1.setRegion(Region.UK);

		user2 = new User();
		user2.setId(2L);
		user2.setUsername("benbear");
		user2.setPassword("t0p5ecret");
		user2.setEmail("bb@theinterweb");

		bid1 = new Bid();
		bid1.setId(1L);
		bid1.setMaxBid(10.01);
		bid1.setItem(item1);
		bid1.setUser(user1);

		bid2 = new Bid();
		bid2.setId(2L);
		bid2.setMaxBid(10.02);
		bid2.setItem(item2);
		bid2.setUser(user2);
	}

	public Bid getBid1() {
		return bid1;
	}

	public Bid getBid2() {
		return bid2;
	}

	public Item getItem1() {
		return item1;
	}

	public Item getItem2() {
		return item2;
	}

	public User getUser1() {
		return user1;
	}

	public User getUser2() {
		return user2;
	}

}
